package com.hellpro.lolbox.utils;

import android.content.Context;
import android.graphics.drawable.Drawable;
import android.widget.ImageView;
import android.widget.RadioButton;

import com.hellpro.lolbox.R;


/**
 * Package_Name: com.zmm.utlis
 * Description :
 * author: HellPermanent
 * date:  2016/10/11 19:27
 * remarks：
 */
public class DrawableSetting {
    private Context mContext;
    private RadioButton an1;
    private  RadioButton an2;
    private  RadioButton an4;
    private  int x;
    private  int y;
    private  RadioButton an3;
    private ImageView an5;
    public  DrawableSetting(Context context, RadioButton an1 , RadioButton an2, RadioButton an3, RadioButton an4 ,int x, int y){
        mContext = context;
   this.an1= an1;
   this.an2= an2;
   this.an3= an3;
   this.an4= an4;
   this.an5= an5;
        this.x =x;
        this.y = y;
        setting();
    }
    private void  setting(){
        Drawable drawable = mContext.getResources().getDrawable(R.drawable.slt_bottom_home_selector);
        drawable.setBounds(0,0,x,y);
       an1.setCompoundDrawables(null,drawable,null,null);
        Drawable drawable1= mContext.getResources().getDrawable(R.drawable.slt_bottom_video_selector);
     drawable1.setBounds(0,0,x,y);
        an2.setCompoundDrawables(null,drawable1,null,null);
        Drawable drawable2 = mContext.getResources().getDrawable(R.drawable.slt_bottom_moment_selector);
            drawable2.setBounds(0,0,x,y);
        an3.setCompoundDrawables(null,drawable2,null,null);
        Drawable drawable3 = mContext.getResources().getDrawable(R.drawable.slt_bottom_mine_selector);
        drawable3.setBounds(0,0,x,y);
        an4.setCompoundDrawables(null,drawable3,null,null);


    }
}
